IF <exp> THEN <statement> [ ELSE <statement> ] IF <exp> <statements> [ ELSEIF <exp> <statements> ] // multiple ELSEIFs may occur [ ELSE <statements> ] ENDIF IF <exp> <statement> [ ELSEIF <exp> <statement> ] // multiple ELSEIFs may occur ELSE <statement>
IF <exp> [ DO <statements> ] ELSEIF <exp> [ DO <statements> ] ELSE DO <statements>
IF <exp> <statements> [ ELSEIF <exp> <statements> ] // multiple ELSEIFs may occur ELSE <statement>
IF a>b IF a=NIL
IFN a<=b IFN a
a:=IF <exp> THEN <texp> ELSE <fexp> a:=IF <exp> <statements> EXIT <texp> [ ELSEIF <exp> <statements> EXIT <eexp> ] // multiple ELSEIFs may occur ELSE <statements> EXIT <fexp> ENDIF a:=IF <exp> <texp> [ ELSEIF <exp> <eexp> ] // multiple ELSEIFs may occur ELSE <fexp>
IF age<10 PrintF('Too young!\n') ELSEIF age<70 PrintF('Well, your age is acceptable.\n') ok:=TRUE ELSE DO PrintF('Too old!\n'); ok:=FALSE